package gui;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class TablePanel extends JPanel {
	
	private	JTable		table;
	private	JScrollPane scrollPane;
	
	/**
	 * Create the panel.
	 */
	public TablePanel(String[][] data, String[] names) {

		// Create a new table instance
		table = new JTable(data, names);
		scrollPane = new JScrollPane(table);
		scrollPane.setSize(1024, 768);
		add(scrollPane, BorderLayout.WEST);
		table.setFillsViewportHeight(true);
	}
}
